<script>
    function abc() {
        var name = document.getElementById('search_key');
        name.className = "ipt12";
    }
    function cc(x) {
        var name = document.getElementById("con_five_" + x);
        var list = document.getElementById("five" + x);
        name.style.display = "none";
        list.className = "";
    }
    function setTab(name, cursel, n) {
        for (i = 1; i <= n; i++) {
            var menu = document.getElementById(name + i);
            var con = document.getElementById("con_" + name + "_" + i);
            menu.className = i == cursel ? "hover" : "";
            con.style.display = i == cursel ? "block" : "none";
        }
    }
</script>

<script type="text/javascript">
    function addvote(id) {
        $.ajax({type: "POST",url: "<?php echo url_for('vote/addvote') ?>",data: "celebrity_id=" + id,
            success: loginResult,
            error:onfail});
    }
    function onfail(x, e) {
        alert("连接失败");
        return false;
    }

    function loginResult(msg) {
        alert(msg);

    }

    function testMethod() {
        $('#add_names').focus();
    }
</script>
<div class="main">
    <div class="left">
        <div class="address_tit address_tit301">您的位置：<a href="#" class="index">ieazy</a> > <a href="#">韩流前沿</a> > <a
                href="#">投票</a></div>


        <!--#视频列表开始-->
        <div class="star_list" style="margin-top:10px;">
            　
            <div class="tp_box">
                <h2>投票说明：</h2>

                <h3>每日人气偶像网友投票：</h3>

                <p>
                    每日可以给所有候选明星投票，票数不限，网友投票结果的前三名将会在每日中午12点EASY网站首页公布，票数将在每周五下午17：00定时清空一次，每周最终结果将在网站首页的“火热头条”公布。投票数10分钟自动更新一次。请大家不要频繁点击。</p>

                <h3>特别提醒：</h3>

                <p>
                    EASY官网的人气投票栏目鉴于一些网友的刷票行为对其他网友造成了不变，特此对这些网友警告如下，即日起一经发现恶意刷票行为，立刻封其ID，严重者封IP,并减去其刷明星票数。谢谢大家对EASY官网的喜爱，但是希望大家公平投票，一味地刷票只能给这项活动造成不便。谢谢大家的继续支持。</p>

                <p style="margin-top:10px;"><b>投票时间：</b>周一到周日 </p>

                <p><b>投票类型：</b>不限（admin已经登录[<a href="#" style="color:#cc0000;">退出</a>]）</p>

                <p style="text-align:right;"><a href="<?php echo url_for('vote/result')?>">查看投票结果</a>　<a
                        href="javascript:testMethod();">我要添加</a></p>
                　
            </div>
            $('#add_names').focus();

            <div class="mt_box tp_con">

                <?php
                                     $i = 0;
                foreach ($arr2 as $row) {
                    if ($i == 15) {
                        echo "每15个+++++++++++++++++++++++++++++++++++++++++++" . "<p>" . "分页" . "<p>";
                        $i = 0;
                    }
                    // echo "<div class='movie_box'><a href='/331.php?myCelebrity=".$row['celebrity_id']."'><img src='".$row['snapshot_big']."' width='184' height='138' /></a><h3><a href='#' target='_blank'>".$row['name']."</a></h3><p class='movie_tit1'>票数：".$row['count_i']."</p><p class='movie_tit3'>投票：<b><button onclick='Button_Vote(".$row['celebrity_id'].")' style='widows:40px; height:15px'></button></b></p></div>";


                    $i++;
                    echo "<div class='mt_con'>
			     ";
                    ?>
                    <?php echo link_to("<img src='" . $row['snapshot_big'] . "' />", "celebrity/detail?celebrityId=" . $row["celebrity_id"], "target='_blank'"); ?>
                    <?php echo "
			     <p><a href='#' target='_blank'>" . $row['name'] . "</a></p>
			     <P>票数：" . $row['count_i'] . "</P>
			     <p>投票：";?>
                    <a><img class='tp_ico' src='/images/tp_ico.jpg' onmouseover="this.src=''"
                            onmouseout="this.src='/images/tp_ico.jpg'"
                            onclick='addvote(<?php echo $row['celebrity_id']?>)'/></a>
                    <?php echo "</p>
			   </div>";
                }
                ?>


                <div class="mt_con">
                    <a href="#" target="_blank"><img src="/images/img23.jpg"/></a>

                    <p><a href="#" target="_blank">标题名称称称称题</a></p>

                    <P>票数：169</P>

                    <p>投票：<a href="#"><img class="tp_ico" src="/images/tp_ico.jpg"/></a></p>
                </div>
                <div class="mt_con">
                    <a href="#" target="_blank"><img src="/images/img23.jpg"/></a>

                    <p><a href="#" target="_blank">标题名称称称称题</a></p>

                    <P>票数：169</P>

                    <p>投票：<a href="#"><img class="tp_ico" src="/images/tp_ico.jpg"/></a></p>
                </div>

            </div>

            <!--<div class="page_list">上一页 <a class="now02" href="#">1</a><a href="#">2</a><a href="#">3</a><a href="#">4</a><a href="#">5</a> 下一页</div>-->
            <div class="add_star">
                <form method="post" action="#" onsubmit="alert('正在内部调试，请稍等');return false;">我要添加人气明星：<input type="text"
                                                                                                            class="add_name"
                                                                                                            id="add_names"
                                                                                                            name="add_name">&nbsp;<input
                        type="submit" value="提&nbsp;交" id="star_btn" name="star_btn" class="ask_submit"></form>
            </div>
        </div>


    </div>
    <!--左侧结束 右侧开始-->

    <div class="right">
        <div class="banner01"><a href="#" target="_blank"><img src="/images/banner01.jpg"/></a></div>
                <?php
                      @include_component('vote', 'hot', array('sex' => 'male'));
        ?>
                <?php
                      @include_component('video', 'hotlink');
        ?>
        　 <!--最热视频结束-->
    </div>
</div>
